package com.sf.osms.dep.processor.util;

import org.apache.commons.lang3.StringUtils;

import com.sf.osms.dep.cache.SysConfigCacheHelper;

public class PropertiesUtil {
	
	public static String getProperty(String key){
		
		if(StringUtils.isBlank(key)){
			return null;
		}
		String value =  null;
		try {
			/*Properties prop = AppContext.getContext().getConfigProperties();
			value = (String) prop.get(key);*/
			value = SysConfigCacheHelper.getSysConfigValue(key);
		} catch (Exception e) {
			e.printStackTrace();
		}
	
		return value;
	}
	
}
